package net.apexes.demo.codegen.querydsl.entity;


/**
 * GoodsComboItem. the database table "GOODS_COMBO_ITEM"
 */
public class GoodsComboItem extends net.apexes.demo.codegen.entity.base.EntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * GOODS_COMBO_GROUP_ID
     */
    private String goodsComboGroupId;

    /**
     * PARENT_GOODS_ID
     */
    private String parentGoodsId;

    /**
     * CHILD_GOODS_ID
     */
    private String childGoodsId;

    /**
     * PRICE
     */
    private java.math.BigDecimal price;

    /**
     * TEMPLATE_ID
     */
    private String templateId;

    public String getGoodsComboGroupId() {
        return goodsComboGroupId;
    }

    public void setGoodsComboGroupId(String goodsComboGroupId) {
        this.goodsComboGroupId = goodsComboGroupId;
    }

    public String getParentGoodsId() {
        return parentGoodsId;
    }

    public void setParentGoodsId(String parentGoodsId) {
        this.parentGoodsId = parentGoodsId;
    }

    public String getChildGoodsId() {
        return childGoodsId;
    }

    public void setChildGoodsId(String childGoodsId) {
        this.childGoodsId = childGoodsId;
    }

    public java.math.BigDecimal getPrice() {
        return price;
    }

    public void setPrice(java.math.BigDecimal price) {
        this.price = price;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public void cloneFrom(GoodsComboItem from) {
        this.goodsComboGroupId = from.goodsComboGroupId;
        this.parentGoodsId = from.parentGoodsId;
        this.childGoodsId = from.childGoodsId;
        this.price = from.price;
        this.templateId = from.templateId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",goodsComboGroupId=").append(goodsComboGroupId);
        sb.append(",parentGoodsId=").append(parentGoodsId);
        sb.append(",childGoodsId=").append(childGoodsId);
        sb.append(",price=").append(price);
        sb.append(",templateId=").append(templateId);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

